package com.diver.flinkdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.diver.flinkdemo.entity.xxt.Depart;
import com.diver.flinkdemo.entity.xxt.PersonDepart;
import org.apache.flink.runtime.topology.Result;

import java.util.List;

/**
 * @Description: 人员 组织/机构表
 * @Author: jeecg-boot
 * @Date: 2022-05-10
 * @Version: V1.0
 */
public interface IPersonDepartService extends IService<PersonDepart> {

    /**
     * 根据人员id获取绑定的主机构
     * @return
     */
    Depart getBindMasterDepart(String personId);


    /**
     * 根据设备ID获取人员的主机构
     * @return
     */
    Depart getDepartByTerminalId(String terminalId);
}
